<p class="Paragraph">Here, you will find an explanation of special tags used for fields.<a name="ende"/></p>
<p class="Paragraph"><help:key-word value="fields; HTML import and export" tag="kw67689_6" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="HTML; fields" tag="kw67689_5" xmlns:help="http://openoffice.org/2000/help"/>When you create HTML documents with fields in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Writer, they are converted into special tags for the HTML source text. These tags are not defined in HTML format since they take specific functions of <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> into account, the fields in this case. When importing and exporting HTML documents, you should remember that there are special formats for fields only defined in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname>.</p>
<p class="Paragraph">The tag for a <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Writer field is <SDFIELD>. The opening tag contains the options for specifying the field type, the format, and the special field. The format of a field tag which is recognized by the HTML filter depends on the special field.</p>
<p class="Head2"><help:key-word value="date/time fields; HTML" tag="kw67689_4"/><help:key-word value="HTML; date/time fields" tag="kw67689_3"/>Document fields of the date or time type</p>
<p class="Paragraph">For the document fields <span class="T1">Date</span> and <span class="T1">Time</span>, the value of the TYPE option is specified as DATETIME. The SDNUM option specifies the field format. Here the distinction between date and time fields is also being made through the format specified (e.g. DD:MM:YY or HH:MM:SS).</p>
<p class="Paragraph">For fixed date and time fields, the date or the time is specified via the SDVAL option. The existence of this option also determines whether the field is a fixed field or not.</p>
<p class="Paragraph">The following table shows through examples which formats for date and clock time fields are interpreted correctly by the HTML filter:</p>
<p class="Paragraph">In previous versions of <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname>, the formats for date and time fields differ from the ones specified here. The old format is still supported by the import. However, the new format is always exported so that fields are no longer created in older Office versions.</p>
<p class="Paragraph">Examples of the 4.0 format:</p>
<p class="Paragraph">In the DocInformation fields, the value of the TYPE option is specified as DOCINFO. The SUBTYPE option indicates the specific field type. The field of the type Created therefore has the SUBTYPE option CREATE; the field type Modified has the CHANGE option. Date and time fields are marked by the FORMAT option DATE or TIME; the format of these fields is specified by the SDNUM option. In addition, there is the SDFIXED option, which means that the content of the DocInformation field is fixed.</p>
<p class="Paragraph">If a fixed field does not stand for a date or time, the text between the opening field tag, <SDFIELD>, and the closing tag, </SDFIELD>, is used as the contents of the field. For date and time fields, the value of the field is specified in a SDVAL option.</p>